package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-08-27 15:36
 */
public class Test01 {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        System.out.println("输入运算符");
//        String operator = sc.next();
//        if("+".equals(operator)) {
//            System.out.println("加法运算");
//        }else if("-".equals(operator)) {
//            System.out.println("减法运算");
//        }else if("*".equals(operator)) {
//            System.out.println("乘法运算");
//        }else if("/".equals(operator)) {
//            System.out.println("除法运算");
//        }else{
//            System.out.println("无法计算");
//        }

        Scanner sc = new Scanner(System.in);
        System.out.println("输入运算符");
        String operator = sc.next();
        switch (operator) {
            case "+":
                System.out.println("加法运算1");
                break;
            case "-":
                System.out.println("减法运算1");
                break;
            case "*":
                System.out.println("乘法运算");
                break;
            case "/":
                System.out.println("除法运算");
                break;
            default:
                System.out.println("无法计算");
                break;
        }




    }
}
